/**
 * Copyright © 2014 TingerSure. All rights reserved.
 */
package org.sure.scomet.util;

import java.io.UnsupportedEncodingException;

import org.sure.scomet.filter.ServerCenter;

public class UnicodeTool {

	/**
	 * Convert a string into a specified form ServerCenter.character.
	 * 
	 * @param message
	 *            the given string
	 * @return the new string
	 */
	public static String unicodeToLocalCharacter(String message) {
		try {
			return new String(message.getBytes("ISO8859-1"),
					ServerCenter.character);
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return null;
	}

}
